# Maintainer:
pkgname=py3-webassets
_pkgname=webassets
pkgver=2.0
pkgrel=3
pkgdesc="Asset management for web development"
options="!check" # 4 tests fail, 2 related to 'nose', 1 to 'pytest'
url="https://pypi.org/project/webassets"
arch="noarch"
license="BSD-2-Clause"
depends="python3"
makedepends="py3-setuptools"
checkdepends="py3-nose py3-pytest py3-mock py3-babel"
subpackages="$pkgname-pyc"
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
builddir="$srcdir"/$_pkgname-$pkgver

replaces="py-webassets" # Backwards compatibility
provides="py-webassets=$pkgver-r$pkgrel" # Backwards compatibility

build() {
	python3 setup.py build
}

check() {
	nosetests
}

package() {
	python3 setup.py install --skip-build --root="$pkgdir"
}

sha512sums="
94f1f8fd5ef3e0e82a04a5dce085b0c326653aa2cd26b681809a071f649cec8bc09139d3f1dbd88047ced8848cae16c8d6459aafa95b018fbc0dcc59bb2528fb  webassets-2.0.tar.gz
"
